<%@ Page Language="C#" MasterPageFile="~/master/public-regular.master" AutoEventWireup="true"
    CodeFile="shopping-list.aspx.cs" Inherits="myaccount_shopping_list" Title="Untitled Page" %>

<%@ Register Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>
<asp:Content ID="cntContent" ContentPlaceHolderID="cphMiddleContent" runat="Server">
    <div class="right-content">
        <table width="78%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td height="30" bgcolor="#f6f6f6" class="plnk" style="padding: 0 10px;">
                    <a href="<%= AutoGear.BLL.CustomSiteMap.Home %>">Home</a> &raquo; <a href="<%= AutoGear.BLL.CustomSiteMap.UserHome %>">
                        My Account </a>&raquo; <a href="<%= AutoGear.BLL.CustomSiteMap.ShoppingList %>">Shopping
                            List</a>
                </td>
            </tr>
            <tr style="padding-top: 3px; padding-bottom: 3px">
                <td colspan="2" align="center" style="height: 19px">
                    <ucc:ResponseMessage ID="uccResponseMessage" runat="server"></ucc:ResponseMessage>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Panel runat="server" ID="pnlShoppingList" Width="100%">
                        <asp:Repeater ID="rptFavorites" runat="server" OnItemDataBound="rptFavorites_ItemDataBound">
                            <HeaderTemplate>
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" id="<%=rptFavorites.ClientID %>">
                                    <tr>
                                        <td height="29" style="background: url(<%=rootPath %>images/sec-head-back.gif); background-repeat: no-repeat;
                                            padding: 0 10px;">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="6%" align="left">
                                                        <asp:CheckBox runat="server" ID="cbxSelectAll" />
                                                    </td>
                                                    <td style="width: 45%" align="left">
                                                        <strong>Item</strong>
                                                    </td>
                                                    <td style="width: 14%" align="right">
                                                        <strong>Price</strong>
                                                    </td>
                                                    <td style="width: 16%" align="center">
                                                        <strong>Quantity</strong>
                                                    </td>
                                                    <td style="width: 18%" align="center">
                                                        <strong></strong>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="border: 1px solid #cacaca; padding: 10px;">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <asp:Panel runat="server" ID="pnlCartItem" DefaultButton="btnCartAdd">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="6%" align="left" valign="middle">
                                                        <asp:CheckBox runat="server" ID="cbxSelect" />
                                                        <asp:HiddenField runat="server" ID="hdfFavoriteId" Value='<%#Eval("FavoriteId")%>' />
                                                    </td>
                                                    <td width="45%" align="center">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td width="23" align="left" valign="middle">
                                                                    <asp:Image runat="server" ID="imgItemImage" CssClass="imagebdr" />
                                                                </td>
                                                                <td width="77%" align="left" valign="middle">
                                                                    <asp:HyperLink runat="server" ID="hlkItem" CssClass="redlnk" NavigateUrl='<%#Eval("Product.ProductUrl")%>'><%#Eval("Product.ProductName")%></asp:HyperLink><br />
                                                                    <asp:Label runat="server" ID="lblItemNumber">Item Number: <%#Eval("Product.ItemNumber")%></asp:Label>
                                                                    <asp:Label runat="server" ID="lblMetalType"><%#Eval("Product.MetalType")%></asp:Label>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    <td width="14%" height="60" align="Right" valign="middle">
                                                        <asp:Label runat="server" ID="lblItemPrice">$<%#Eval("Product.ProductPrice")%></asp:Label>
                                                    </td>
                                                    <td width="16%" align="center" valign="middle">
                                                        <asp:TextBox runat="server" ID="tbxQuantity" CssClass="txtbox" Width="40px">1</asp:TextBox>
                                                        <asp:Label ID="lblQuantityRequired" runat="server" CssClass="red">&nbsp;</asp:Label>
                                                    </td>
                                                    <td width="18%" align="right" valign="middle">
                                                        <asp:Button runat="server" ID="btnCartAdd" CssClass="custombutton" Text="Add To Cart"
                                                            CommandName="AddToCart" OnCommand="Add_To_Cart" Width="85px" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <SeparatorTemplate>
                                <tr>
                                    <td height="1" bgcolor="#eeeeee">
                                    </td>
                                </tr>
                            </SeparatorTemplate>
                            <FooterTemplate>
                                <tr>
                                    <td height="1" bgcolor="#eeeeee">
                                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td height="35" align="left">
                                                    <asp:Button runat="server" ID="btmItemRemove" CssClass="custombutton" Text="Remove"
                                                        Width="70px" Height="25" OnClick="btnItemRemove_Click" />
                                                    <asp:Button runat="server" ID="btnCartAddAll" CssClass="custombutton" Text="Add Selected Items To Cart"
                                                        Width="180px" Height="25" OnClick="btnCartAddAll_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                </table></td> </tr> </table></FooterTemplate>
                        </asp:Repeater>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Panel runat="server" ID="pnlEmptyList" BackColor="#eeeeee" Width="100%">
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                            <tr style="height: 30px;">
                                <td valign="middle" align="center">
                                    <b>Shopping List is Empty.</b>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td align="left">
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
